package com.center.adapter;

import android.widget.ImageView;

import androidx.annotation.Nullable;

import com.center.R;
import com.center.model.ShareModel;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import pic.PicLoadManager;

public  class ShareAdapter extends BaseQuickAdapter<ShareModel, BaseViewHolder> {
    public ShareAdapter(int layoutResId, @Nullable @org.jetbrains.annotations.Nullable List<ShareModel> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, ShareModel item) {

        helper.setImageResource(R.id.pic,item.getPic());
        helper.setText(R.id.tv_name,item.getName());
    }
}
